package com.base.controller;

import com.base.service.PdfFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;


@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private PdfFileService pdfFileService;

    /**
     * 上传文件,解析地址信息
     */
    @PostMapping("/upload")
    public String upload(@RequestParam(value = "file") MultipartFile multipartFile) {
        pdfFileService.getHarvesterCompany(multipartFile);
        return "";
    }

}
